<template>
  <div>
    <el-dialog
      title="货道设置"
      :visible="ChannelVisible"
      width="60%"
      @close="cancel"
      @opened="opened"
    >
      <template>
        <div class="top">
          <ul>
            <li>
              销售量： <span>个</span>
            </li>
            <li>
              销售额： <span>元</span>
            </li>
            <li>
              补货次数： <span>次</span>
            </li>
            <li>
              维修次数： <span>次</span>
            </li>
            <li><el-button type="primary">智能排货</el-button></li>
          </ul>
        </div>
        <div class="contain">
          <ul>
            <li v-for="(item, index) in 20" :key="index">
              <div><img src="https://img0.baidu.com/it/u=779478669,1772130263&fm=253&fmt=auto&app=138&f=JPEG?w=501&h=500" alt=""></div>
              <p><span>添加</span><span>删除</span></p>
            </li>
          </ul>
        </div>
      </template>
      <span slot="footer" class="dialog-footer">
        <el-button>确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    ChannelVisible: {
      type: Boolean,
      required: true,
      default: false
    }
  },
  methods: {
    opened () {},
    cancel () {
      this.$emit('update:ChannelVisible', false)
    }
  }
}
</script>

<style lang="scss" scoped>
.dialog-footer {
.el-button {
  color: #fff !important;
  background: linear-gradient(135deg, #ff9743, #ff5e20) !important;
  &:hover {
    background: linear-gradient(135deg, #ff7d43, #db3602) !important;
  }
}

}
.top {
  display: flex;
  margin: 0 auto;
  height: 54px;
  line-height: 54px;
  align-items: center;
  justify-content: center;
  background-color: rgba(227, 233, 245, 0.39);
  ul {
    display: flex;
    width: 100%;
  }
  li {
    float: left;
    list-style: none;
    margin: 0 auto;
    flex: 1;
    text-align: center;
    span {
      // height: 20px;
      // line-height: 20px;
      color: #5f84ff;
      font-size: 13px;
    }
  }
}
.el-dialog__body {
    padding: 30px 20px;
  }
.contain {
  width: 80%;
  ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: #ff7d43;
    li {
      margin: 10px;
      list-style: none;
      background: #5f84ff;
      div {
        img {
          width: 105px;
        }
      }
      p {
        padding: 10px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
    }
  }
}
</style>
